<?php
/**********************************INCLUDE*********************************** *
* **************************************************************************** */
include_once '../app/App.php';
include_once '../account/Account.php';

/**
 * @author nicholas malacarne <nicholas.malacarne@gmail.com>
 * 
 * Requests information about the app.
 */
try {
    
    // get instance of app
    $app = App::init();
        
    // return app info -nm
    echo json_encode( $app->getInfo() );
    
    
}catch( Exception $e ){
    
    $report[ 'exception' ] = array();
    
    $report[ 'exception' ][ 'file' ] = $e->getFile();
    $report[ 'exception' ][ 'line' ] = $e->getLine();
    $report[ 'exception' ][ 'msg' ] = $e->getMessage();
    
    echo json_encode( $report );
    
} // TODO: handle specific exception -nm

exit();